<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(function(){
		$("#btnReturn").click(function(){
			$("form").attr("action","pages/personal/newslist_handler.jsp");
		});
		
		$("#btnSave").click(function(){
			if ($("#title").val() == "") {
				art.dialog.alert('标题不能为空，请检查！');
				return false;
			}
			if ($("#content").val() == "") {
				art.dialog.alert('内容不能为空，请检查！');
				return false;
			}
		});
	});
</script>
</head>
<body>
	<form action="pages/personal/savenews_handler.jsp" method="post">
	<div style="width: 400px;margin: 0 auto;border: solid 1px red;text-align: center;padding-top: 15px;padding-bottom: 15px;">
		<div style="margin-top: 45px;">
			标题：<input type="text" name="title" id="title" style="width: 230px;">
		</div>
		<div style="margin-top: 15px;">
			内容：<textarea name="content" id="content" rows="20" cols="30"></textarea>
		</div>
		<div style="margin-top: 15px;">
			<input type="submit" id="btnSave" value="保存">&nbsp;&nbsp;&nbsp;
			<input type="submit" id="btnReturn" value="返回">
		</div>
	</div>
	</form>
</body>
</html>